import { NoSkinCellRenderer } from "./NoSkinCellRenderer";
//class Skin1CellRenderer
    
    export  class Skin1CellRenderer extends NoSkinCellRenderer
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ initStyle(): void
        {
            super.initStyle();
            this.setStyle("overSkin", new overSkin());
            var loc1=new clickSkin();
            this.setStyle("selectedDownSkin", loc1);
            this.setStyle("selectedOverSkin", loc1);
            this.setStyle("selectedUpSkin", loc1);
            return;
        }
    }
}


class clickSkin extends flash.display.Sprite
{
    public clickSkin()
    {
        super();
        this.mouseChildren = false;
        this.mouseEnabled = false;
        return;
    }

    public /* override */ set width(arg1: number)
    {
        this._innerWidth = arg1;
        this.draw();
        return;
    }

    public /* override */ set height(arg1: number)
    {
        this._innerHeight = arg1;
        this.draw();
        return;
    }

    public draw(): void
    {
        this.graphics.clear();
        this.graphics.beginFill(880761, 1);
        this.graphics.drawRoundRect(1, 0, this._innerWidth, (this._innerHeight - 1), 6, 6);
        this.graphics.endFill();
        return;
    }

    /* internal */ /* var */_innerWidth: number=0;

    /* internal */ /* var */_innerHeight: number=0;
}

class overSkin extends flash.display.Sprite
{
    public overSkin()
    {
        super();
        this.mouseChildren = false;
        this.mouseEnabled = false;
        return;
    }

    public /* override */ set width(arg1: number)
    {
        this._innerWidth = arg1;
        this.draw();
        return;
    }

    public /* override */ set height(arg1: number)
    {
        this._innerHeight = arg1;
        this.draw();
        return;
    }

    public draw(): void
    {
        this.graphics.clear();
        this.graphics.lineStyle(2, 65407, 1);
        this.graphics.drawRoundRect(1, 0, this._innerWidth, (this._innerHeight - 1), 6, 6);
        this.graphics.endFill();
        return;
    }

    /* internal */ /* var */_innerWidth: number=0;

    /* internal */ /* var */_innerHeight: number=0;
